/**
 * 云存储同步插件样式文件
 * 
 * @package CommonCloudStorage
 * @author ZBlog
 * @version 1.0
 */

/* 主容器样式 */
#divMain {
    margin: 20px;
}

.divHeader {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f5f5f5;
    border-left: 4px solid #007cba;
}

/* 子菜单样式 */
.SubMenu {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.SubMenu a {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.SubMenu a:hover {
    background-color: #f0f0f0;
    border-bottom-color: #007cba;
}

.SubMenu a.active {
    background-color: #007cba;
    color: white;
    border-bottom-color: #005a87;
}

/* 表格样式 */
.tableBorder {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tableBorder th {
    background-color: #007cba;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

.tableBorder td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.tableBorder tr:hover {
    background-color: #f9f9f9;
}

/* 表单元素样式 */
input[type="text"],
input[type="password"],
select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
}

input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

/* 按钮样式 */
.button {
    background-color: #007cba;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.button:hover {
    background-color: #005a87;
}

.button:active {
    background-color: #004a73;
}

.button.secondary {
    background-color: #6c757d;
}

.button.secondary:hover {
    background-color: #545b62;
}

.button.danger {
    background-color: #dc3545;
}

.button.danger:hover {
    background-color: #c82333;
}

/* 提示信息样式 */
.note {
    color: #666;
    font-size: 12px;
    margin-left: 10px;
    font-style: italic;
}

.hint-good {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}

.hint-bad {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* 配置区块样式 */
.config-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.config-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #007cba;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-success {
    background-color: #28a745;
}

.status-error {
    background-color: #dc3545;
}

.status-warning {
    background-color: #ffc107;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #divMain {
        margin: 10px;
    }
    
    .tableBorder {
        font-size: 14px;
    }
    
    .tableBorder th,
    .tableBorder td {
        padding: 8px;
    }
    
    input[type="text"],
    input[type="password"],
    select {
        width: 100%;
        max-width: 300px;
    }
    
    .SubMenu a {
        display: block;
        margin-bottom: 5px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 工具提示 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background-color: #007cba;
    transition: width 0.3s ease;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.card-body {
    line-height: 1.6;
}